﻿using DomainModel;
using FluentNHibernate.Mapping;

namespace Repository.NHibernate.Mapping
{
    public class GroupMap : ClassMap<Group>
    {
        public GroupMap()
        {
            Id(x => x.Id).GeneratedBy.Native();
            
            Map(x => x.Name);
            References(x => x.Curator);
            References(x => x.Praepostor);
            HasMany(x => x.Students);
        }
    }
}